<?php
namespace Catalog\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * AttributeValue
 *
 * @ORM\Table(name="attribute_value")
 * @ORM\Entity
 */
class AttributeValue
{
    /**
     * @var integer
     *
     * @ORM\Column(name="attribute_value_id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="SEQUENCE")
     * @ORM\SequenceGenerator(sequenceName="attribute_value_id_sequence", allocationSize=1, initialValue=1)
     */
    private $attributeValueId;

    /**
     * @var string
     *
     * @ORM\Column(name="value", type="string", length=128, nullable=false)
     */
    private $value;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_default", type="boolean", nullable=false)
     */
    private $isDefault;

    /**
     * @var string
     *
     * @ORM\Column(name="code", type="string", length=128, nullable=false)
     */
    private $code;
    
    /**
     * @var integer
     *
     * @ORM\Column(name="attribute_id", type="integer", nullable=false)
     */
    private $attributeId;

    /**
     * 
     * @return number
     */
    public function getId() 
    {
    	return $this->attributeValueId;
    }

    /**
     * 
     */
    public function getValue()
    {
    	return $this->value;
    }
    
    /**
     * 
     */
    public function isDefault()
    {
    	return $this->isDefault;
    }
    
    /**
     * 
     * @return number
     */
    public function getAttributeId()
    {
    	return $this->attributeId;
    }

    /**
     *
     * @return string
     */
    public function getCode()
    {
    	return $this->code;
    }
    
}
